package com.zy.explore.sys.infrastructure.third.dingtalk.frm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * description 获取钉钉Token
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021年07月08日 01:15
 */
@ApiModel("获取钉钉Token的请求Frm")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GetTokenFrm {

    @ApiModelProperty(value = "钉钉appKey", required = true, example = "dingthpjjlmzyzfzioaw")
    @NotBlank(message = "appkey不能为空")
    private String appkey;

    @ApiModelProperty(value = "钉钉appSecret", required = true, example = "j2pt3kvCDtkjHOOs7u1WqTTRLs9TLL_vi9wzwZs7BQ-Dp5_vajea0zmlc3USEByQ")
    @NotBlank(message = "appsecret不能为空")
    private String appsecret;

}
